﻿package baidu.reader.common.model.VO
{

    public class AppPreferenceVO extends Object
    {
        private var _displayType:String = "single page";
        private var _fontName:String = "宋体";
        private var _fontSize:int = 14;
        private var _leading:int = 12;
        public static const SINGLE_PAGE:String = "single page";
        public static const DOUBLE_PAGE:String = "double page";

        public function AppPreferenceVO(param1:String = null, param2:String = null, param3:int = 0, param4:int = 0)
        {
            this._displayType = param1;
            this._fontName = param2;
            this._fontSize = param3;
            this._leading = param4;
            return;
        }// end function

        public function get displayType() : String
        {
            return this._displayType;
        }// end function

        public function set displayType(param1:String) : void
        {
            this._displayType = param1;
            return;
        }// end function

        public function get fontName() : String
        {
            return this._fontName;
        }// end function

        public function set fontName(param1:String) : void
        {
            this._fontName = param1;
            return;
        }// end function

        public function get fontSize() : int
        {
            return this._fontSize;
        }// end function

        public function set fontSize(param1:int) : void
        {
            this._fontSize = param1;
            return;
        }// end function

        public function get leading() : int
        {
            return this._leading;
        }// end function

        public function set leading(param1:int) : void
        {
            this._leading = param1;
            return;
        }// end function

        public static function getVOfromObject(param1:Object) : AppPreferenceVO
        {
            return new AppPreferenceVO(param1.displayType, param1.fontName, param1.fontSize, param1.leading);
        }// end function

    }
}
